package com.jse.web;

import java.util.function.Function;

public class FunRoute implements Route {
	
	private final Function<Ctx,Object> fun;
	
	public FunRoute(Function<Ctx,Object> fun) {
		this.fun=fun;
	}

	@Override public Object run(Ctx c) {return fun.apply(c);}

}
